package com.sms.graduate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;


@Data
@TableName("sms_leave")
public class SmsLeave extends PageUtil implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "Id",type = IdType.AUTO)
    private Integer id;
    
    /** 
     *学号 
     */
    @TableField(value = "UserCode")  
    private String usercode;
    
    /** 
     *姓名 
     */
    @TableField(value = "Username")  
    private String username;

    /**
     * 审批人工号
     */
    @TableField(value = "ApproverCode")
    private String approvercode;

    /** 
     *审批人 
     */
    @TableField(value = "Approver")  
    private String approver;
    
    /** 
     *开始时间 
     */
    @TableField(value = "StartTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate starttime;
    
    /** 
     *结束时间 
     */
    @TableField(value = "EndTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endtime;
    
    /** 
     *天数 
     */
    @TableField(value = "DayNum")  
    private Integer daynum;
    
    /** 
     *结果
     */
    @TableField(value = "Result")
    private String result;
    
    /** 
     *请假原因 
     */
    @TableField(value = "Reason")  
    private String reason;
    
    /** 
     *状态 
     */
    @TableField(value = "Status")  
    private Integer status;

    /**
     * 班级
     */
    @TableField(exist = false)
    private String userClass;

    /**
     * 性别
     */
    @TableField(exist = false)
    private String sex;

    public static final String COL_ID = "Id";

    public static final String COL_USERCODE = "UserCode";
     
    public static final String COL_USERNAME = "Username";

    public static final String COL_APPROVERCODE = "ApproverCode";

    public static final String COL_APPROVER = "Approver";
     
    public static final String COL_STARTTIME = "StartTime";
     
    public static final String COL_ENDTIME = "EndTime";
     
    public static final String COL_DAYNUM = "DayNum";
     
    public static final String COL_RESULT = "Result";
     
    public static final String COL_REASON = "Reason";
     
    public static final String COL_STATUS = "Status";
     

}

